Action hook 'add_option_{$option}'
in WP Core File wp-includes/option.php at line 1154
Description
Fires after a specific option has been added. The dynamic portion of the hook name, `$option`, refers to the option name.
Occurrences
Filename |
Line Number |
wp-includes/option.php |
1154 |
Parameters
Type |
Name |
Description |
string |
$option |
Name of the option to add. |
mixed |
$value |
Value of the option. |
PHP Doc
/**
* Fires after a specific option has been added.
*
* The dynamic portion of the hook name, `$option`, refers to the option name.
*
* @since 2.5.0 As "add_option_{$name}"
* @since 3.0.0
*
* @param string $option Name of the option to add.
* @param mixed $value Value of the option.
*/